package com.gxa.web_admin.controller;

import com.gxa.common.base.RespResult;
import com.gxa.modules.dto.LoginFormDTO;
import com.gxa.modules.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletResponse;

@RestController
@RequestMapping("/sys_user")
public class SysUserController {

     @Autowired
     private SysUserService sysUserService;

    @PostMapping("/sulogin")
    public RespResult sulogin(@RequestBody LoginFormDTO loginFormDTO, HttpServletResponse response){
        return sysUserService.login(loginFormDTO,response);
    }



}
